#include "game.h"

int main(int argc, char* args[])
{
	// Initialize game
	Game game;
	SDL_Event e;
	
	bool running = true;
	printf("Initialize game...");

	if (!game.start()) 
	{
		printf("....Failed\n");
		return -1;
	}
	printf("Success\n");

	// start game loop here...
	while (running)
	{
		while (SDL_PollEvent(&e))
			running = game.input(&e);
				
		game.draw(game.display);
	}

	// clean all game resources...
	printf("Exiting the game\n");
	game.end();
	return 0;
}